package com.shop.zzh.dto;

import lombok.Getter;

/**
 * @program: shop
 * @description: 消息队列枚举配置
 * @author: zhuzh
 * @create: 2019-12-02 11:36
 **/
@Getter
public enum QueueEnum {

	/**
	 * 消息通知队列
	 */
	QUEUE_LOGIN_CANCEL("zzh.login.direct", "zh.login.cancel", "zh.login.cancel"),
	/**
	 * 消息通知ttl队列
	 */
	QUEUE_TTL_LOGIN_CANCEL("zh.login.direct.ttl", "zh.login.cancel.ttl", "zh.login.cancel.ttl");

	/**
	 * 交换名称
	 */
	private String exchange;
	/**
	 * 队列名称
	 */
	private String queue;
	/**
	 * 路由键
	 */
	private String routeKey;

	QueueEnum(String exchange, String queue, String routeKey) {
		this.exchange = exchange;
		this.queue = queue;
		this.routeKey = routeKey;
	}
}
